package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class SubjectPageVo {

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;


    /**
     * 课程id
     */
    private Integer subjectId;

    /**
     * 课程名字
     */
    private String subjectName;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        return "SubjectPageVo{" +
                "pageSize=" + pageSize +
                ", page=" + page +
                ", subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SubjectPageVo that = (SubjectPageVo) o;
        return Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page) && Objects.equals(subjectId, that.subjectId) && Objects.equals(subjectName, that.subjectName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pageSize, page, subjectId, subjectName);
    }
}
